import Vue from 'vue'
import App from './App'
import store from 'store/index.js'
import uView from 'uview-ui'
import qualityBall from './components/quality_ball/qualityBall.vue'
import ConfirmAlert from '@/components/common/ConfirmAlert.vue'
import Empty from './components/common/Empty.vue'
import CommonList from './components/common/List.vue'
import api from './api/index'
import global from './mixin/mixin'

Vue.config.productionTip = false

App.mpType = 'app'
Vue.use(uView)
Vue.mixin(global)
// 微信sdk
// #ifdef H5
import wechat from './utils/wechat'
if (wechat.isWechat()) {
  Vue.prototype.$wechat = wechat
}
// #endif
// api
Vue.prototype.$api = api
// 公共组件
Vue.component('qualityBall', qualityBall)
Vue.component('ConfirmAlert', ConfirmAlert)
Vue.component('Empty', Empty)
Vue.component('CommonList', CommonList)
const app = new Vue({
  ...App,
  store,
})
app.$mount()
